package cn.mxlshy.springcloud.service;

import entities.CommonResult;
import entities.Payment;
import lombok.Data;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.Serializable;

/**
 * @author: 马晓亮
 * @date: 2020/8/7 14:52
 * @description:
 */
@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentFeignService  {
    @GetMapping("/payment/get/{id}")
    public CommonResult<Payment>  getPayment(@PathVariable("id") Long id);
    @GetMapping("/payment/feign/timeout")
    public String paymentFeignTimeout();
}
